<?php

namespace JsonLowCode\Table\Column;

use JsonLowCode\UI;
use JsonLowCode\Table\BaseColumn;

class Link extends BaseColumn
{
    protected string $text;

    /**
     * @param ...$parameters
     */
    public function __construct(...$parameters)
    {
        parent::__construct($parameters);
        $this->text = is_string($parameters[0])?$parameters[0]:"default";
    }

    public function link(){

    }

    protected function booted(): void
    {
        $this->element = UI::link($this->text);
    }
}
